package com.tpp.threat_perception_platform.dao;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.Hotfix;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author yokui
* @description 针对表【hotfix】的数据库操作Mapper
* @createDate 2025-06-13 10:15:11
* @Entity com.tpp.threat_perception_platform.pojo.Hotfix
*/
public interface HotfixMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Hotfix record);

    int insertSelective(Hotfix record);

    Hotfix selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Hotfix record);

    int updateByPrimaryKey(Hotfix record);
    void deleteByMacAddress(String macAddress);

    int countByMacAddress(String macAddress);
    List<Hotfix> findAll(@Param("param") MyParam param);
    //模糊搜索相关
    List<Hotfix> findByMacAddress(@Param("param") MyParam param);
    List<Hotfix> findByHostName(@Param("param") MyParam param);
    List<Hotfix> findByHotfixId(@Param("param") MyParam param);

    int selectAbnormalCount();
}
